#ifndef _KEYPAD_H_
#define _KEYPAD_H_

#define KEY_A            PAD_BUTTON_A
#define KEY_B            PAD_BUTTON_B
#define KEY_SELECT       PAD_BUTTON_SELECT
#define KEY_START        PAD_BUTTON_START
#define KEY_RIGHT        PAD_KEY_RIGHT
#define KEY_LEFT         PAD_KEY_LEFT
#define KEY_UP           PAD_KEY_UP
#define KEY_DOWN         PAD_KEY_DOWN
#define KEY_R            PAD_BUTTON_R
#define KEY_L            PAD_BUTTON_L
#define KEY_X            PAD_BUTTON_X
#define KEY_Y            PAD_BUTTON_Y

class CKeyPad
{
private:
	static BOOL		m_running;
	static int		m_keysDown;
protected:
public:
	static void init();
	static void start();
	static void stop();
	static void update();
	
	static BOOL isKeyDown(int key) { return (m_keysDown & key) != 0; }
};
#endif //_KEYPAD_H_